* {
    padding: 0;
    margin: 0;
}
body{
    font-size: 62.5%;
}
header {
    background-color: aquamarine;
    height: 10vh;
    display: flex;
}
.navContainer{
    width: 70%;
    display: flex;
}
nav {
    width: 100%;
    line-height: 10vh; 
    text-align: center;
    background-color: hotpink;
    margin-right: 1em;
}
.iconBtn{
    box-sizing: border-box;
    z-index: 99;
    line-height: 10vh;
    position: absolute;
    right: 0.5em;
    display: none;
}
main{
    height: 75vh;
    display: flex;
}
main>*{
    height: 100%;
    line-height: 75vh;
    text-align: center;
}
aside{
    flex: 0.15;
    background-color: aqua;
}
section{
    flex: 0.6;
    background-color: gold;
}
article{
    flex: 0.25;
    background-color: blueviolet;
}
footer{
    background-color: tomato;
    height: 15vh;
    line-height: 15vh;
    text-align: center;
}


/* 大于640px且小于960px时作用的样式 */
@media screen and (max-width:960px){
    aside{
        flex: 0.25;
    }
    section{
        flex: 0.75;
    }
    article{
        display: none;
    }
}


/* 小于640px作用的样式 */
@media screen and (max-width:640px){
    header{
        height: 7vh;
    }
    .navContainer{
        display: none;
    }
    .iconBtn{
        display: block;
        line-height: 7vh;
    }
    main{
        height: 83vh;
        flex-direction: column;
    }
    aside{
        height: 10vh;
        flex: 0;
        line-height: 10vh;
    }
    section{
        height: 60vh;
        line-height: 60vh;
    }
    article{
        display: block;
        height: 13vh;
        line-height: 13vh;
        flex: 0;
    }
    footer{
        height: 10vh;
        line-height: 10vh;
    }
}
